package com.share.dao.oa.org.impl;

import java.util.List;

import org.springframework.stereotype.Component;

import com.share.bean.oa.org.EmpAccount;
import com.share.commons.base.dao.BaseDaoSupport;
import com.share.dao.oa.org.EmpAccountDao;

@Component
public class EmpAccountDaoImpl extends BaseDaoSupport<EmpAccount> implements EmpAccountDao {
	
	public EmpAccount checkEmployeeLogin(String hql, String whereHQL,
			List<Object> param) throws RuntimeException {
		return this.findSingleEntity(hql, whereHQL, param) ;
	}

	@Override
	public List<Object> checkAccountExistDao(String property,String whereHQL,Object[] param) throws RuntimeException {
		return this.findByProperty(property, "EmpAccount o", whereHQL,param) ;
	}

	@Override
	public Object updateEmpPwdDao(String hql, String setHQL, String whereHQL, Object[] param) throws RuntimeException {
		return this.executeHQL(hql, setHQL, whereHQL, param) ;
	}

}
